package cn.bs.busuo.content.dao.persist.repository.impl;

import cn.bs.busuo.content.dao.persist.mapper.TagMapper;
import cn.bs.busuo.content.dao.persist.repository.TagRepository;
import cn.bs.busuo.content.pojo.entity.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: Feng
 * @since: 2023/12/10
 */
@Repository
public class TagRepositoryImpl implements TagRepository {

    @Autowired
    private TagMapper tagMapper;

    @Override
    public int insert(Tag tag) {
        return tagMapper.insert(tag);
    }

    @Override
    public int deleteByIds(List<Long> ids) {
        return tagMapper.deleteByIds(ids);
    }

    @Override
    public List<Tag> selectTagList() {
        return tagMapper.selectTagList();
    }
}
